﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TsInterfaceRazor.ModelInfo;

namespace RazorTs.ModelInfo
{
    public class ApiDescribe
    {
        /// <summary>
        /// 是否是空参数
        /// </summary>
        public bool IsNullParam { get; set; } = true;
        /// <summary>
        /// 是否是params参数
        /// </summary>
        public bool IsParams { get; set; } = true;
        /// <summary>
        /// params参数
        /// </summary>

        public string Params { get; set; }
        /// <summary>
        /// 是否是Data参数
        /// </summary>
        public bool IsData { get; set; } = false;
        /// <summary>
        /// data 参数
        /// </summary>
        public string Data { get; set; } 
        /// <summary>
        /// 方法名
        /// </summary>
        public string MethodName { get; set; }
        /// <summary>
        /// 请求方式
        /// </summary>
        public string RequestMethod { get; set; }
        /// <summary>
        /// api地址(相对路径)
        /// </summary>
        public string ApiUrl { get; set; }
        /// <summary>
        /// 参数
        /// </summary>
        public List<ModelPropertyDescribe> ModelPropertyParameterDescribes { get; set; } = new List<ModelPropertyDescribe>();

        /// <summary>
        /// 参数string
        /// </summary>
        public string ParameterString { get; set; }
        /// <summary>
        /// 返回值
        /// </summary>
        public string ReturnValue { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Describe { get; set; }
        /// <summary>
        /// 拼接好
        /// </summary>
        public string Describes { get; set; }

    }


    public class ApisDescribe
    {
        public List<ApiDescribe> ApiDescribes { get; set; }=new List<ApiDescribe>();
    }



}
